gtk: Fix some g-i annotations warnings
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 17 Sep 2018 11:00:36 +0000 (13:00 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 17 Sep 2018 11:00:36 +0000 (13:00 +0200)
gtk/gtkfilterlistmodel.c
gtk/gtkfilterlistmodel.h
gtk/gtkmaplistmodel.c
gtk/gtkmaplistmodel.h
gtk/gtkslicelistmodel.c
gtk/gtksortlistmodel.c
gtk/gtktreelistmodel.h

index 47def9656d8518ce95bf52d2967742e0626510dd..bf2ced74e59b135de403c7d92b21bb3c55ae9109 100644 (file)
@@ -459,7 +459,7 @@ gtk_filter_list_model_augment (GtkCssRbTree *filter,
  * @model: the model to sort
  * @filter_func: (allow-none): filter function or %NULL to not filter items
  * @user_data: user data passed to @filter_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
  *
  * Creates a new #GtkFilterListModel that will filter @model using the given
  * @filter_func.
@@ -512,7 +512,7 @@ gtk_filter_list_model_new_for_type (GType item_type)
  * @self: a #GtkFilterListModel
  * @filter_func: (allow-none): filter function or %NULL to not filter items
  * @user_data: user data passed to @filter_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
  *
  * Sets the function used to filter items. The function will be called for every
  * item and if it returns %TRUE the item is considered visible.
index f19607fd70902a009c637ad9877b5ef6a533e6f5..3ab1601ff57fe42daeaa448ef81278a314d619f8 100644 (file)
@@ -36,7 +36,7 @@ G_BEGIN_DECLS
 GDK_AVAILABLE_IN_ALL
 G_DECLARE_FINAL_TYPE (GtkFilterListModel, gtk_filter_list_model, GTK, FILTER_LIST_MODEL, GObject)
 
-typedef gboolean (* GtkFilterListModelFilterFunc) (gpointer item, gpointer data);
+typedef gboolean (* GtkFilterListModelFilterFunc) (gpointer item, gpointer user_data);
 
 GDK_AVAILABLE_IN_ALL
 GtkFilterListModel *    gtk_filter_list_model_new               (GListModel             *model,
index 028bc060e45461fa876daccf66de95e5c935df49..6a3de78f8bcb1cf6e20a8e8d3dc366a0613acfce 100644 (file)
@@ -421,7 +421,7 @@ gtk_map_list_model_augment (GtkCssRbTree *map,
  * @model: (allow-none): The model to map or %NULL for none
  * @map_func: (allow-none): map function or %NULL to not map items
  * @user_data: user data passed to @map_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
  *
  * Creates a new #GtkMapListModel for the given arguments.
  *
@@ -431,8 +431,8 @@ GtkMapListModel *
 gtk_map_list_model_new (GType                   item_type,
                         GListModel             *model,
                         GtkMapListModelMapFunc  map_func,
-                        gpointer                data,
-                        GDestroyNotify          data_destroy)
+                        gpointer                user_data,
+                        GDestroyNotify          user_destroy)
 {
   GtkMapListModel *result;
 
@@ -445,7 +445,7 @@ gtk_map_list_model_new (GType                   item_type,
                          NULL);
 
   if (map_func)
-    gtk_map_list_model_set_map_func (result, map_func, data, data_destroy);
+    gtk_map_list_model_set_map_func (result, map_func, user_data, user_destroy);
 
   return result;
 }
@@ -498,7 +498,7 @@ gtk_map_list_model_init_items (GtkMapListModel *self)
  * @self: a #GtkMapListModel
  * @map_func: (allow-none): map function or %NULL to not map items
  * @user_data: user data passed to @map_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
  *
  * Sets the function used to map items. The function will be called whenever
  * an item needs to be mapped and must return the item to use for the given
index 185c8ed0da43f2914c7ac889299d4b6d0023ab31..e5c637297a844b8727b971ba3bed2d41998503c1 100644 (file)
@@ -39,13 +39,13 @@ G_DECLARE_FINAL_TYPE (GtkMapListModel, gtk_map_list_model, GTK, MAP_LIST_MODEL,
 /**
  * GtkMapListModelMapFunc:
  * @item: (transfer full): The item to map
- * @data: user data
+ * @user_data: user data
  *
  * User function that is called to map an @item of the original model.
  *
  * Returns: (transfer full): The item to map to. This function may not return %NULL
  */
-typedef gpointer (* GtkMapListModelMapFunc) (gpointer item, gpointer data);
+typedef gpointer (* GtkMapListModelMapFunc) (gpointer item, gpointer user_data);
 
 GDK_AVAILABLE_IN_ALL
 GtkMapListModel *       gtk_map_list_model_new                  (GType                   item_type,
index 95c6eaa03d7fabf7465632c449cea132e374a8b7..2345b2e7166d3cd69450f473555fe926e3adeb19 100644 (file)
@@ -470,7 +470,7 @@ gtk_slice_list_model_get_offset (GtkSliceListModel *self)
 }
 
 /**
- * gtk_slice_list_model_set_offset:
+ * gtk_slice_list_model_set_size:
  * @self: a #GtkSliceListModel
  * @size: the maximum size
  *
index f127791ebc186b97c03f5ab63a835831494c938a..4b9fa64acf1ebfe5c8e0b587b13c5477947c74c3 100644 (file)
@@ -418,7 +418,7 @@ gtk_sort_list_model_create_sequences (GtkSortListModel *self)
  * @self: a #GtkSortListModel
  * @sort_func: (allow-none): sort function or %NULL to not sort items
  * @user_data: user data passed to @sort_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
  *
  * Sets the function used to sort items. The function will be called for every
  * item and must return an integer less than, equal to, or greater than zero if
index 9b34735acdc0ea79fbeea3b0dfa50d6f0af99e18..fd9585e2be7079f25e30e3065760921803715392 100644 (file)
@@ -42,20 +42,20 @@ G_DECLARE_FINAL_TYPE (GtkTreeListRow, gtk_tree_list_row, GTK, TREE_LIST_ROW, GOb
 /**
  * GtkTreeListModelCreateModelFunc:
  * @item: The item that is expaned
- * @data: User data passed when registering the function
+ * @user_data: User data passed when registering the function
  *
  * Prototype of the function called to create new child models when
  * gtk_tree_list_row_set_expanded() is called.
  */
-typedef GListModel * (* GtkTreeListModelCreateModelFunc) (gpointer item, gpointer data);
+typedef GListModel * (* GtkTreeListModelCreateModelFunc) (gpointer item, gpointer user_data);
 
 GDK_AVAILABLE_IN_ALL
 GtkTreeListModel *      gtk_tree_list_model_new                 (gboolean                passthrough,
                                                                  GListModel             *root,
                                                                  gboolean                autoexpand,
                                                                  GtkTreeListModelCreateModelFunc create_func,
-                                                                 gpointer                data,
-                                                                 GDestroyNotify          data_destroy);
+                                                                 gpointer                user_data,
+                                                                 GDestroyNotify          user_destroy);
 
 GDK_AVAILABLE_IN_ALL
 GListModel *            gtk_tree_list_model_get_model           (GtkTreeListModel       *self);
@@ -93,7 +93,7 @@ GDK_AVAILABLE_IN_ALL
 GtkTreeListRow *        gtk_tree_list_row_get_parent            (GtkTreeListRow         *self);
 GDK_AVAILABLE_IN_ALL
 GtkTreeListRow *        gtk_tree_list_row_get_child             (GtkTreeListRow         *self,
-                                                                 guint                   child);
+                                                                 guint                   position);
 
 
 G_END_DECLS